import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    count: 0,
    loading:false,
    time_condition:'时间段:',
    left_menu:'1-1'
  },
  mutations: {
    increment (state) {
      state.count++
    },
    changeLoading(state,data){
      state.loading=data;
    },
    changeTimeCondition(state,data){
      state.time_condition=data;
    },
    changeLeftMenu(state,data){
      state.left_menu=data;
    }
  },
  actions: {
  },
  modules: {
  }
})
